home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Python 1.3.3
/
stdwin
/
Gen
/
wstyle.c
< prev
next >
Wrap
Text File
|
1995-12-21
|
609b
|
66 lines
/* STDWIN -- TEXT ATTRIBUTES. */
#include "tools.h"
#include "stdwin.h"
#include "style.h"
TEXTATTR wattr;
/* Setting text drawing parameters. */
void
wsetplain()
{
wattr.style= PLAIN;
}
void
wsethilite()
{
wattr.style |= HILITE;
}
void
wsetinverse()
{
wattr.style |= INVERSE;
}
void
wsetitalic()
{
wattr.style |= ITALIC;
}
void
wsetbold()
{
wattr.style |= BOLD;
}
void
wsetbolditalic()
{
wattr.style |= BOLD|ITALIC;
}
void
wsetunderline()
{
wattr.style |= UNDERLINE;
}
void
wgettextattr(attr)
TEXTATTR *attr;
{
*attr= wattr;
}
void
wsettextattr(attr)
TEXTATTR *attr;
{
wattr= *attr;
}